import { applyMiddleware, combineReducers, createStore, compose } from 'redux'
import CityReducer from './reducer/CityReducer';
import TabbarReducer from './reducer/TabbarReducer';
import CinemaReducer from './reducer/CinemaReducer';
import reduxThunk from 'redux-thunk'
// import reduxPromise from 'redux-promise'

const reducer = combineReducers({
    CityReducer,
    TabbarReducer,
    CinemaReducer
})

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

const store = createStore(reducer, composeEnhancers(applyMiddleware(reduxThunk)))

export default store;